<!DOCTYPE html>
<html>
<#include "../../include/resource.html">
<body>
	<#assign nid="member"> 
	<#include "../../include/header.html">
	<!--header-end-->
	<!--用户中心的主栏目 开始-->
	<div id="main" class="clearfix" >
		<div class="wrap950 " style="margin-top:0">
			<!--左边的导航 开始-->
			<div class="user_left">
					<#assign mid="m_identify" >
			<#include "../user_menu.html"></div>
			<!--左边的导航 结束-->

			<!--右边的内容 开始-->
			<div class="user_right">
				<#if msg?exists>
				<div id="msg24">
					<p class="ok">${msg}</p>
				</div>
				<#else> <#if errormsg?exists>
				<div id="msg25">
					<p class="error">${errormsg}</p>
				</div>
				</#if> </#if>
				<div class="user_right_menu">
					<#assign userinfo_type="phone">
					<#include "identify_menu.html"></div>
				<div class="user_right_foot alert">
				<#if user?exists&&user.phone_status?exists&&user.phone_status==2>
					手机认证正在审核！
				<#elseif user?exists&&user.phone_status?exists&&user.phone_status==1>
					已完成手机认证，认证号码:${user.phone!}
				<#else> 
				<form action="" method="post">
					手机号码：<input type="text" name="phone" id="phone" value="${(session_user.phone)?default("")}" /> 
							<input name="valicode" type="text" size="11" maxlength="5" tabindex="3"/>&nbsp;
							<input type="button" value="获取验证码"  class="btn "onclick="doajax();"/>
							<input type="submit"  class="btn-action" value="确认提交" class="subphone" />
							<input type="hidden"  name="actionType" value="modifyPhone" class="subphone" />
							<br />
							<br />
				</form>
				</#if>
				 <script>
					jQuery(function(){
					jQuery('.subphone').click(function(){
						var phone = jQuery('#phone').val();
						if(phone==''){
							alert('手机号码不能为空'); 
							return false;
						}else{
							 reg=/^1[3|4|5|8][0-9]{9}$/; 
							if(!reg.test(phone)){
								alert('手机号码格式不正确！');
								return false;
							}
						}
					});
				});
				function doajax(){
					var phone = jQuery('#phone').val();	
					var now = new Date(); 
					var gettime=now.getTime();
					if(phone==''){
						alert("手机号码不能为空");
					}else{
					$(function(){
						$.ajax({
							"url": "${webroot}/member/identify/mobileaccess.html?mobile="+phone,
							"type": "post",
							"cache": "false",
							"data": {'name':$("#phone").val()},
							"dataType": "json",
							"error": function(){
							},
							"success": function(data){
								if(data != null){
								alert(data.data);
								}
							}
						});
					});
					}
				}

		</script>
		<!--邮箱认证 结束-->
				<div class="user_right_foot alert">
				 * 温馨提示：我们将对所有的信息进行保密
				</div>
				</div>
			</div>
			<!--右边的内容 结束-->
		</div>
	</div>
	<!--用户中心的主栏目 结束-->
	<script
		src="${request.getContextPath()}/themes/soonmes/media/js/modal.js"></script>

	<#include "../../include/footer.html">
</body>
</html>